package com.google.zxing.client.homework;

import com.google.zxing.common.StringUtils;

import java.io.Serializable;
import java.util.Vector;

/**
 * Created by yanmaoshen on 2017/11/19.
 */
public class QuestionInfo implements Serializable {
    static final long serialVersionUID = 3453522L;
    private long QI = -1;//Question ID
    private int QT = -1;//Question Type
    private int column = -1;// column
    private int top = -1;
    private Vector<Integer> heightVec = new Vector<Integer>();
    private Vector<Character> choiceResultVec = new Vector<Character>();
    private String picPath = null;

    public QuestionInfo(){

    }
    public int getColumn() {
        return column;
    }

    public void setColumn(int column) {
        this.column = column;
    }

    public long getQI() {
        return QI;
    }

    public void setQI(long QI) {
        this.QI = QI;
    }

    public int getQT() {
        return QT;
    }

    public void setQT(int QT) {
        this.QT = QT;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public Vector<Integer> getHeightVec() {
        return heightVec;
    }

    public void setHeightVec(Vector<Integer> heightVec) {
        this.heightVec = heightVec;
    }

    public void addHeight(Integer height) {
        this.heightVec.add( height );
    }

    public void clearHeightVec(){ this.heightVec.clear(); } // 787945

    public Vector<Character> getChoiceResultVec() {
        return choiceResultVec;
    }

    public void setChoiceResultVec(Vector<Character> choiceResultVec) {
        this.choiceResultVec = choiceResultVec;
    }

    public void addChoiceResult( int serial ){ this.choiceResultVec.add( (char) ('A' + serial) );} //A 65

    public void clearChoiceResultVec(){ this.choiceResultVec.clear();}

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }
}
